'use strict';
const Controller = require('egg').Controller;
class MongoController extends Controller {
  async tools() {
    // 假设请求的参数为{username: 'jack', userpassword: '123456'}
    const query = this.ctx.request.body; 
    const result = await this.ctx.service.user.tools(query);
    this.ctx.response.body = result;
  }
}
module.exports = MongoController;

